package com.company.fegin;

import com.company.fegin.Impl.ShopClientImpl;
import com.company.fegin.entity.Shop;
import com.company.fegin.fallback.SearchFallbackFactory;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author yinxing
 * @date 2022-08-05
 */
@FeignClient(value = "SHOP")
public interface ShopClient {
    /**
     * 商店来访
     * @param shop
     * @return
     */
    @RequestMapping("/visit")
    public String visit(@RequestBody Shop shop);

    /**
     * 负载均衡
     * @return
     */
    @GetMapping("/hello")
    public String hello();


}
